Skip to content

FormEncoder 0.13.1: the Windows release builds again, with LAME and the C2PA tool - #18

Merged
nodemode-ai merged 3 commits into
mainfrom
feat/finish-0.13.1
Nov 21, 2026
Merged

nodemode-ai merged 3 commits into
mainfrom
feat/finish-0.13.1

Conversation

@nodemode-ai

Copy link
Copy Markdown
Collaborator

FormEncoder 0.13.1: the Windows release builds again, with LAME and the C2PA tool

Three commits on origin/main (merged 0.13.0), the release commit last. Branch feat/finish-0.13.1.

What changes for people

  • The Windows build of 0.13.0 stopped while packaging the engine (pyinstaller: error: unrecognized arguments: ...\backend\formencoder_engine.py): one space was missing in setup/freeze_backend.bat, so --name took formencoder-engine--distpath and dist-engine became the script. The space is back, and the line was read token by token against setup/freeze_backend: every option and the five --add-data pairs match, ; for :; only --collect-submodules winpty is Windows-only.
  • A new check, setup/check_freeze_bat.py, takes the pyinstaller line out of the .bat, puts stand-ins for %ROOT% and %CONSOLE%, splits it as cmd.exe does and parses it with PyInstaller's own parser (generate_parser(), Windows path separator). It fails when the parser refuses it, when the script name is not the engine entry file, or when the options differ from the POSIX twin's. The CI scripts job installs requirements_desktop.txt and runs it; CONTRIBUTING and the verification skill list it.
  • On 64-bit Windows, LAME's nmake gets MSVCVER=Win64 MACHINE=/machine:X64 (/machine:ARM64 for an arm64 MSVC target), so its lib step no longer asks for x86 and the LNK1112 stop is gone. LAME 3.100's Makefile.MSVC could not be read here, so the two macros are the ones the build log points at.
  • The C2PA tool's cargo install gets OPENSSL_SRC_PERL set to a Perl that has Locale::Maketext::Simple (Strawberry Perl at C:\Strawberry\perl\bin\perl.exe on the hosted runners) for that one command only; with none found it says so and runs as before, so a failure is still the --keep-going warning.
  • Not run: Windows itself; the first proof is the windows_x64 release build.
  • The 105 engine tests that need the native core ran with it built: the whole backend suite passes, 282.

Commits

  • cb8ad2e fix(windows): the engine freeze command names the engine script again, and CI parses it
  • 8076864 fix(windows): LAME and c2patool build in a 64-bit Windows release
  • abf3159 chore(release): 0.13.1

This is a merge commit pull request: merge it with a merge commit, as the earlier releases were, so the history stays as it is.

What was run, with counts

  • The check against the 0.13.0 .bat line: exit 1 with PyInstaller's own error: unrecognized arguments: D:\a\formencoder\formencoder\backend\formencoder_engine.py. On the fixed line: 0 findings. With one --add-data destination changed in a scratch copy: 1 finding (datas), exit 1.
  • Native engine built with setup/build_native (release profile): 96 commands, 40 formats, 98 presets.
  • Backend suite with the engine: 282 passed, 0 failed, on 8076864 and again on a scratch copy of abf3159.
  • --selfcheck "ok": true (96 commands, 40 formats, 98 presets); agents sync --check in step; python -m app.functions manifest --check in step. The generator's output before the bump was the committed form-functions.json byte for byte, so nothing was committed for it.
  • Boot probe as CI's engine job runs it: engine up, 125 MCP tools, a preview image, and a verified encode the window allowed.
  • Window check: 2 passed on 8076864 and on abf3159.
  • After the bump: cargo metadata --locked in native and in src-tauri exit 0 (both lock files agree with the new versions).
Job Result here
interface npm ci --dry-run 0, npm audit 0 vulnerabilities, npm run build 0
scripts bash -n loop clean, lint_text 0 findings, py_compile clean, check_freeze_bat 0 findings
engine compileall clean, self-check ok, agents sync --check in step, MCP boot and encode ok
test 282 passed
window 2 passed
engine-hosts, desktop-shell not run (see below)

Held

  • Nothing of the six items. The page's reload already tries the kept window key first (frontend/src/engine/window-key.ts, from 8638880), as FormPDF's main does, so nothing changed for it.

Not run

  • Windows itself; the first proof is the windows_x64 release build. Neither nmake with the new macros nor the Strawberry Perl path was run.
  • macOS, the desktop shell build, a packaged engine (freeze_backend was not run), cargo check of the native workspace and of src-tauri (the engine-hosts and desktop-shell jobs), any real agent program.
  • The native engine was not rebuilt at 0.13.1: the engine in the venv says 0.13.0; no version test reads it.

…, and CI parses it

setup/freeze_backend.bat had lost the space before --distpath, so PyInstaller
took dist-engine as the script and refused formencoder_engine.py. The space is
back; the line was read token by token against setup/freeze_backend.

setup/check_freeze_bat.py parses the .bat's pyinstaller line with PyInstaller's
own parser (stand-ins for %ROOT% and %CONSOLE%, ; as the path separator) and
compares it with the POSIX twin. It exits 1 on the 0.13.0 line with PyInstaller's
unrecognized-arguments error and 0 on the fixed one. The CI scripts job runs it.
LAME's nmake gets MSVCVER=Win64 and MACHINE=/machine:X64 (ARM64 on an arm64
MSVC target), so its lib step no longer asks for x86 objects. c2patool's cargo
install gets OPENSSL_SRC_PERL pointing at a Perl with Locale::Maketext::Simple
(Strawberry Perl on the hosted runners) when one is found; without one it runs
as before. Not run on Windows.
Sets 0.13.1 at the version sites of the 0.13.0 release (README badge and
line, backend, frontend package and lock, version.ts, the native and
desktop Cargo files and their lock entries, pyproject, tauri.conf.json,
form-functions.json) and adds the CHANGELOG entry. The three demo bundles
are rebuilt with the commands of demo/README.md; each changes only its
version string.

form-functions.json: python -m app.functions manifest, run with the engine
built, gave the committed 0.13.0 file byte for byte, so the generator and
the hand-set version agreed; the version here is set by hand and checked
with manifest --check.
@nodemode-ai
nodemode-ai requested a review from gbarnai as a code owner November 21, 2026 02:55
@nodemode-ai
nodemode-ai merged commit b623d86 into main Nov 21, 2026
9 checks passed
@nodemode-ai
nodemode-ai deleted the feat/finish-0.13.1 branch November 21, 2026 03:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant